package com.jeesite.modules.rt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 设备报警设置Entity
 * @author 李寒冰
 * @version 2025-01-08
 */
@Table(name="rt_device_baojing", alias="a", label="设备报警设置信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="type", attrName="type", label="报警类型"),
		@Column(name="content", attrName="content", label="内容"),
		@Column(name="jianyi", attrName="jianyi", label="建议"),
		@Column(name="is_show", attrName="isShow", label="是否显示0否 1是"),
	}, orderBy="a.id DESC"
)
public class RtDeviceBaojing extends DataEntity<RtDeviceBaojing> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 报警类型
	private String content;		// 内容
	private String jianyi;		// 建议
	private Integer isShow;

	public RtDeviceBaojing() {
		this(null);
	}
	
	public RtDeviceBaojing(String id){
		super(id);
	}

	public Integer getIsShow() {
		return isShow;
	}

	public void setIsShow(Integer isShow) {
		this.isShow = isShow;
	}

	@Size(min=0, max=50, message="报警类型长度不能超过 50 个字符")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Size(min=0, max=1000, message="内容长度不能超过 1000 个字符")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Size(min=0, max=1000, message="建议长度不能超过 1000 个字符")
	public String getJianyi() {
		return jianyi;
	}

	public void setJianyi(String jianyi) {
		this.jianyi = jianyi;
	}
	
}